package com.coca1cole.auth.infra.basic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类
 *
 * @author coca1cole
 * @since 2024-01-22 18:29:49
 */
@Data
@TableName("auth_permission")
public class AuthPermission implements Serializable {

    /**
     *
     */
    @TableId(value = "`id`", type = IdType.AUTO)
    private Long id;

    /**
     *
     */
    @TableField("`name`")
    private String name;

    /**
     *
     */
    @TableField("`parent_id`")
    private Long parentId;

    /**
     *
     */
    @TableField("`type`")
    private Integer type;

    /**
     *
     */
    @TableField("`menu_url`")
    private String menuUrl;

    /**
     *
     */
    @TableField("`status`")
    private Integer status;

    /**
     *
     */
    @TableField("`show`")
    private Integer show;

    /**
     *
     */
    @TableField("`icon`")
    private String icon;

    /**
     *
     */
    @TableField("`permission_key`")
    private String permissionKey;

    /**
     * 创建人
     */
    @TableField("`created_by`")
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField("`created_time`")
    private Date createdTime;

    /**
     * 更新人
     */
    @TableField("`update_by`")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField("`update_time`")
    private Date updateTime;

    /**
     *
     */
    @TableField("`is_deleted`")
    private Integer isDeleted;

}

